
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>鹰眼控件</title>
<style type="text/css">
 #map1{
                position: relative;
                height: 520px;
                border:1px solid #3473b7;
            }
</style>
<script src='./libs/SuperMap.Include.js'></script>
<script type="text/javascript">
	var map4, map5, map6,layerWorld1,layerWorld2,layerWorld3,control;
	var url1 = "http://222.25.188.1:50118/iserver/services/map-YC/rest/maps/基本农田保护规划@超图数据";
	var url2 = "http://222.25.188.1:50118/iserver/services/map-YC/rest/maps/土地利用总体规划@超图数据";
	var url3 = "http://222.25.188.1:50118/iserver/services/map-YC/rest/maps/urban_master_plan";

	function init() {
		map4 = new SuperMap.Map("map1", {
			controls : [ new SuperMap.Control.Navigation({
				dragPanOptions : {
					enableKinetic : true
				}
			}) ]
		});
	
		//初始化简易缩放控件类
		zoom=new SuperMap.Control.Zoom();
		//加载控件
		map4.addControl(zoom);
		control = new SuperMap.Control.MousePosition();
		

		//map4.events.on({"mouseover":setMap});//鼠标移至地图上时被触发
	

		layerWorld1 = new SuperMap.Layer.TiledDynamicRESTLayer("World", url1,{maxResolution:"auto"}); //获取图层服务地址
	

		layerWorld1.events.on({
			"layerInitialized" : addLayer1
		});
		
		
		
	}

	//添加地图图层、鹰眼控件到map
	function addLayer1() {
		map4.zoomTo(10);
		map4.addLayers([ layerWorld1 ]);		
		map4.setCenter(new SuperMap.LonLat(37426892.09 , 4083177.09), 0);

	}
	

</script>
</head>
<body onload="init()">

	<div id="map1">
		
	</div>
</body>
</html>